package model

import "gorm.io/gorm"

type Video struct {
	gorm.Model
	UserId       int64   `gorm:"type:int; not null; index;commit:'用户Id'"`
	Title        string  `gorm:"type:varchar(150); not null; commit:'标题'"`
	Image        string  `gorm:"type:varchar(150); not null; commit:'图片'"`
	Price        float32 `gorm:"type:decimal(10,2); not null; commit:'价格'"`
	VipPrice     float32 `gorm:"type:decimal(10,2); not null; commit:'会员价格'"`
	VideoNum     int64   `gorm:"type:int; not null;commit:'课程章节数'"`
	TypeId       int64   `gorm:"type:int; not null;commit:'类型Id'"`
	MemberStatus int64   `gorm:"type:int; not null;default:0;commit:'会员状态: 0-不是会员,1-是会员'"`
	Status       int64   `gorm:"type:int; not null;default:0;commit:'会员状态: 0-展示,1-隐藏'"`
}
type Type struct {
	gorm.Model
	Typename string `gorm:"type:varchar(50); not null; commit:'分类名称'"`
}

type VideoType struct {
	UserId   int64
	Title    string
	Image    string
	Price    float32
	VipPrice float32
	VideoNum int64
	Typename string
}
